package com.ruoyi.cs.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户兑换记录对象 t_exchange
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@Data
public class TExchange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兑换记录ID */
    @ApiModelProperty(value = "兑换记录ID")
    private String dhId;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /** 饰品ID */
    @Excel(name = "饰品ID")
    @ApiModelProperty(value = "饰品ID")
    private String goodsId;

    /** 饰品名称 */
    @Excel(name = "饰品名称")
    @ApiModelProperty(value = "饰品名称")
    private String goodsName;

    /** 饰品兑换价格 */
    @Excel(name = "饰品兑换价格")
    @ApiModelProperty(value = "饰品兑换价格")
    private BigDecimal goodsExprice;

    /** 兑换前余额 */
    @Excel(name = "兑换前余额")
    @ApiModelProperty(value = "兑换前余额")
    private BigDecimal dhBeforeBalance;

    /** 兑换后余额 */
    @Excel(name = "兑换后余额")
    @ApiModelProperty(value = "兑换后余额")
    private BigDecimal dhAfterBalance;

    /** 备注2 */
    @Excel(name = "背包ID")
    @ApiModelProperty(value = "背包ID")
    private String bbId;

    /** 备注3 */
    @Excel(name = "备注3")
    @ApiModelProperty(value = "备注3")
    private String remark3;

    /** 备注4 */
    @Excel(name = "备注4")
    @ApiModelProperty(value = "备注4")
    private String remark4;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @ApiModelProperty(value = "删除标志")
    private String delFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    @ApiModelProperty(value = "版本号")
    private Long version;

    /**
     * 后台标志
     */
    @ApiModelProperty(value = "后台标志")
    private String backStage;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dhId", getDhId())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsExprice", getGoodsExprice())
            .append("dhBeforeBalance", getDhBeforeBalance())
            .append("dhAfterBalance", getDhAfterBalance())
            .append("remark", getRemark())
                .append("bbId", getBbId())
                .append("remark3", getRemark3())
                .append("remark4", getRemark4())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .toString();
    }
}
